import request from "@/utils/request";

// 查询产品SKU列表
export function listBizProductSku(query){
  return request({
    url: "/biz/bizProductSku/list",
    method: "get",
    params: query
  })
}

// 查询产品SKU详细
export function getBizProductSku(id){
  return request({
    url: "/biz/bizProductSku/" + id,
    method: "get"
  })
}

// 新增产品SKU
export function addBizProductSku(data){
  return request({
    url: "/biz/bizProductSku",
    method: "post",
    data: data
  })
}

// 修改产品SKU
export function updateBizProductSku(data){
  return request({
    url: "/biz/bizProductSku",
    method: "put",
    data: data
  })
}

// 删除产品SKU
export function delBizProductSku(id){
  return request({
    url: "/biz/bizProductSku/" + id,
    method: "delete"
  })
}

// 查询最大编号
export function findMaxSort(){
  return request({
    url: "/biz/bizProductSku/findMaxSort",
    method: "get"
  })
}
// 导出产品SKU
export function exportBizProductSku (query){
  return request({
    url: "/biz/bizProductSku/export",
    method: "get",
    params: query
  })
}
